package com.techstar.ats.type;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum SubType implements Enumerated {
	START(0x0001, "开始标记"),
	DATA(0x0002, "数据标记"),
	END(0x0003, "结束标记");

	private final int value;
	private final String literal;

	@Override
	public int value() {
		return value;
	}

	public String literal() {
		return this.literal;
	}

	public static SubType valueOf(int value) {
		return Enumerated.valueOf(SubType.class, value);
	}
}
